import {App} from 'antd';
import {useNavigate} from "react-router-dom";

let message;
let notification;
let modal;
let navigate;

export default () => {
  const staticFunction = App.useApp();
  navigate = useNavigate()
  message = staticFunction.message;
  modal = staticFunction.modal;
  notification = staticFunction.notification;
  return null;
};

export {message, notification, modal, navigate};
